package com.itheima;

import com.itheima.example.common.model.User;
import com.itheima.example.common.service.UserService;
import com.itheima.wei.springboot.starter.annotation.RpcReference;
import org.springframework.stereotype.Service;

/**
 * ClassName: ExampleServiceImpl
 * Package: com.itheima
 * Description:
 *
 * @Author 看到风
 * @Create 2024/12/13 18:04
 * @Version 1.0
 */
@Service
public class ExampleServiceImpl {
@RpcReference
    private UserService userService;


public void test (){
    User user = new User();
    user.setName("weihe");
    User serviceUser = userService.getUser(user);
    System.out.println(serviceUser.getName());

}


}
